import java.util.Date;

/**
 * @author : niu niu
 * @version : 1.0.0
 * @date : 2023/4/20 10:24
 */
public class ThreadDemo25 {

    public static void main(String[] args) {
        MyThreadPool pool = new MyThreadPool(3);
        for (int i = 0; i < 10; i++) {
            pool.submit(() -> {
                System.out.println("????" + new Date());
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            });
        }
    }
}
